package com.designpatterns.factory.factory2;

import com.designpatterns.factory.factory2.pizza.Pizza;
import com.designpatterns.factory.factory2.pizzaStroe.ChiagoStylePizzaStroe;
import com.designpatterns.factory.factory2.pizzaStroe.NYStylePizzaStroe;
import com.designpatterns.factory.factory2.pizzaStroe.PizzaStroe;

public class Test {
    public static void main(String[] args) {
        PizzaStroe nyStylePizzaStroe = new NYStylePizzaStroe();
        PizzaStroe chiagoStylePizzaStroe = new ChiagoStylePizzaStroe();

        Pizza pizza = nyStylePizzaStroe.orderPizza("cheese");
        System.out.println("Ethan ordered a " + pizza.getName() + "\n");

        pizza = chiagoStylePizzaStroe.orderPizza("cheese");
        System.out.println("Joe ordered a " + pizza.getName() + "\n");
    }
}
